//
//  FRQTermsofUseViewController.m
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/10/25.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import "FRQTermsofUseViewController.h"
#import "TermsofUseViews.h"
@interface FRQTermsofUseViewController ()
@property (nonatomic,strong) TermsofUseViews *TermsofUseView;
@end

@implementation FRQTermsofUseViewController
- (TermsofUseViews *)TermsofUseView{
    if (nil==_TermsofUseView) {
        _TermsofUseView=skXibView(@"TermsofUseViews");
        [self.view addSubview:_TermsofUseView];
        [_TermsofUseView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.mas_topLayoutGuide);
            make.bottom.mas_equalTo(self.mas_bottomLayoutGuide);
            make.right.left.mas_equalTo(0);
        }];
        @weakify(self)
        [[_TermsofUseView.btnBack rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
            @strongify(self)
            
            [self dismissViewControllerAnimated:YES completion:^{
                
            }];
        }];
    }
    return _TermsofUseView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.TermsofUseView.hidden=NO;
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
